package com.test.service;

import java.util.List;

import com.test.dao.NewsDAO;
import com.test.entity.News;

public class NewsService {
	private NewsDAO newsDAO;

	public List<News> queryNews() {

		return newsDAO.queryNews();
	}

	public List<News> queryNewsdetail(int pageSize, int curpage) {
		return newsDAO.queryNewsdetail(pageSize, curpage);
	}

	public Object queryRecordAmount() {
		return newsDAO.queryRecordAmount();
	}

	public NewsDAO getNewsDAO() {
		return newsDAO;
	}

	public void setNewsDAO(NewsDAO newsDAO) {
		this.newsDAO = newsDAO;
	}

}
